package com.wx.chapter12.exception_;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/6/16 - 10:22
 */
public class Exception01 {
    public static void main(String[] args) {
        int num1 = 10;
        int num2 = 0;
        try {
            int res = num1 / num2;
            System.out.println("程序继续运行....");
        } catch (Exception e) {
            System.out.println(e.getMessage());//输出异常信息
        }
    }
}
